package com.example.elm_server_api.domain;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 订单主表
 * @TableName order
 */
@Data
@ToString
@NoArgsConstructor //默认构造
@AllArgsConstructor //全属性构造
public class Order implements Serializable {
    /**
     * 主键
     */
    private Integer id;

    /**
     * 订单ID
     */
    private String orderId;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 商铺ID
     */
    private Integer shopId;

    /**
     * 餐盒费
     */
    private Integer boxCost;

    /**
     * 配送费
     */
    private Integer sendCost;

    /**
     * 总价
     */
    private Integer totalMoney;

    /**
     * 优惠金额
     */
    private Integer discountMoney;

    /**
     * 红包ID
     */
    private String couponId;

    /**
     * 红包满减金额
     */
    private Integer couponMoney;

    /**
     * 实付金额
     */
    private Integer payMoney;

    /**
     * 支付方式
     */
    private Integer payWay;

    /**
     * 限定的时间
     */
    private Date demandTime;

    /**
     * 加入时间
     */
    private Date addTime;

    /**
     * 状态
     */
    private Integer status;

    /*private OrderDetail userMobile;*/

    private OrderDetail orderDetail;
    private OrderFood orderFood;
    private OrderProcess orderProcess;

}